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(); }
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); }
public Querys(SwordsDanceDatabase database) { this.database = database; }