Exemplo n.º 1
0
 public ResourceTimer(SwordsDanceDatabase database)
 {
     this.database = database;
     this.timer = new Timer(1000);
     this.timer.Elapsed += new ElapsedEventHandler(this.timer_Elapsed);
     this.timer.Start();
 }
 public ResourceGraphForm(SwordsDanceDatabase database)
 {
     InitializeComponent();
     this.database = database;
     this.transactions_castlekeep = () => { try { this.Invoke(new EventHandler(this.MonthLabel_TextChanged)); } catch (Exception) { } };
     Common.ShapeMemory.Load(this);
     Version version = Assembly.GetExecutingAssembly().GetName().Version;
     this.Text = string.Format("回転剣舞 ver {0}.{1}.{2}", version.Major, version.Minor, version.Build);
     this.chart0();
 }
Exemplo n.º 3
0
 public MainForm(SwordsDanceDatabase database)
 {
     InitializeComponent();
     this.database = database;
     this.missionTimer = new MissionTimer(this.database);
     this.resourceTimer = new ResourceTimer(this.database);
     this.LoginCompletedAction = () => this.Invoke(new Action(this.SwordsDanceBrowser_LoginCompleted));
     this.LoginErrorAction = (e) => this.Invoke(new Action<Exception>(this.SwordsDanceBrowser_LoginError), e);
     this.MuteChangedAction = (mute) => this.Invoke(new Action<bool>(this.SwordsDanceBrowser_MuteChanged), mute);
     this._login_start = () => this.Invoke(new Action(this.apiNotify_login_start));
     this.missionAction = () => { try { this.Invoke(new Action(this.missionTimer_Notify)); } catch (Exception) { } };
     this.resourceAction = () => { try { this.Invoke(new Action(this.resourceTimer_Notify)); } catch (Exception) { } };
     Common.ShapeMemory.Load(this);
     Version version = Assembly.GetExecutingAssembly().GetName().Version;
     this.Text = string.Format("回転剣舞 ver {0}.{1}.{2}", version.Major, version.Minor, version.Build);
 }
Exemplo n.º 4
0
 public Querys(SwordsDanceDatabase database)
 {
     this.database = database;
 }