Exemplo n.º 1
0
        private void refresh()
        {
            distroManager = JsonConvert.DeserializeObject <DistroManager>(WslQuery.getInstalledDistrosJson());

            this.DistroElementHolder.Items.Clear();
            for (int i = 0; i < distroManager.distros.Count; ++i)
            {
                this.DistroElementHolder.Items.Add(generateDockPanel(distroManager.distros[i]));
            }
        }
Exemplo n.º 2
0
 public MainWindow()
 {
     distroManager = JsonConvert.DeserializeObject <DistroManager>(WslQuery.getInstalledDistrosJson());
     Console.WriteLine(distroManager.distros[0].distroName);
     InitializeComponent();
     this.DistroElementHolder.Items.Clear();
     for (int i = 0; i < distroManager.distros.Count; ++i)
     {
         this.DistroElementHolder.Items.Add(generateDockPanel(distroManager.distros[i]));
     }
 }