public MainWindow(int t) { InitializeComponent(); Initialize(); mFs = MyFileSystem.Instance(); mFs.RegisterWindow(this); UpdateShowGrid(); UpdateTreeView(); this.tbDir.Text = mFs.currentDir.getFileLoc(); window_cnt = t; }
public MainWindow() { InitializeComponent(); Initialize(); if (!Deserialize()) { mFs = MyFileSystem.Instance(); mFs.EnterNextDir("user"); } mFs.InitRegister(); mFs.RegisterWindow(this); UpdateShowGrid(); UpdateTreeView(); this.tbDir.Text = mFs.currentDir.getFileLoc(); window_cnt = ++window_total; }