コード例 #1
0
        private void clear(object sender, System.Windows.RoutedEventArgs e)
        {
            // AccountNmaeTxt.Items.Clear();???
            PwdTxt.Clear();
            string        appStartPath = System.IO.Path.GetDirectoryName(System.Diagnostics.Process.GetCurrentProcess().MainModule.FileName);
            StringBuilder builder      = new StringBuilder();

            builder.Append(appStartPath);
            builder.Append("\\LoginFile\\");
            builder.Append("\\XML\\");
            System.IO.DirectoryInfo directoryInfo = new DirectoryInfo(builder.ToString());
            if (!directoryInfo.Exists)
            {
                return;
            }
            builder.Append("LoginInfoXml.xml");
            this.fullFilePath = builder.ToString();
            if (InfoFile.Exists)
            {
                InfoFile.Delete();
            }
            listUserInfo.Clear();
            this.AccountNmaeTxt.ItemsSource = listUserInfo;
        }
コード例 #2
0
 private void clear(object sender, System.Windows.RoutedEventArgs e)
 {
     // AccountNmaeTxt.Items.Clear();???
     PwdTxt.Clear();
 }