[longomatch/fakelive] Added Project property
- From: Andoni Morales Alastruey <amorales src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [longomatch/fakelive] Added Project property
- Date: Mon, 15 Mar 2010 21:44:51 +0000 (UTC)
commit 89b2983b75afbf561043214e3898090084746fc1
Author: Andoni Morales Alastruey <ylatuya gmail com>
Date: Sun Mar 7 17:26:17 2010 +0100
Added Project property
LongoMatch/Gui/Dialog/NewProjectDialog.cs | 13 +++++++++----
LongoMatch/Gui/MainWindow.cs | 4 ++--
2 files changed, 11 insertions(+), 6 deletions(-)
---
diff --git a/LongoMatch/Gui/Dialog/NewProjectDialog.cs b/LongoMatch/Gui/Dialog/NewProjectDialog.cs
index f70ad3b..d888c85 100644
--- a/LongoMatch/Gui/Dialog/NewProjectDialog.cs
+++ b/LongoMatch/Gui/Dialog/NewProjectDialog.cs
@@ -38,12 +38,17 @@ namespace LongoMatch.Gui.Dialog
public ProjectType Use {
set {
- this.fdwidget.Use = value;
+ fdwidget.Use = value;
}
}
-
- public Project GetProject() {
- return this.fdwidget.GetProject();
+
+ public Project Project{
+ get {
+ return fdwidget.GetProject();
+ }
+ set{
+ fdwidget.SetProject(value);
+ }
}
}
}
diff --git a/LongoMatch/Gui/MainWindow.cs b/LongoMatch/Gui/MainWindow.cs
index a248bc5..3eba047 100644
--- a/LongoMatch/Gui/MainWindow.cs
+++ b/LongoMatch/Gui/MainWindow.cs
@@ -370,7 +370,7 @@ namespace LongoMatch.Gui
npd.TransientFor = this;
npd.Use = type;
int response = npd.Run();
- while (response == (int)ResponseType.Ok && npd.GetProject() == null) {
+ while (response == (int)ResponseType.Ok && npd.Project == null) {
MessagePopup.PopupMessage(this, MessageType.Info,
Catalog.GetString("Please, select a video file."));
response=npd.Run();
@@ -378,7 +378,7 @@ namespace LongoMatch.Gui
npd.Destroy();
// Si se cumplen las condiciones y se ha pulsado el botón aceptar continuamos
if (response ==(int)ResponseType.Ok) {
- project = npd.GetProject();
+ project = npd.Project;
if (type == ProjectType.NewFileProject) {
try {
MainClass.DB.AddProject(project);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]